package module.dao;

import common.annotation.DaoSql;
import common.annotation.QueryDao;
import common.bean.SearchPageResult;
import common.bean.SearchParameter;
import common.dao.BaseDao;
import module.model.AssessmentGradingModel;
import module.model.AssessmentItemModel;

import java.util.List;

@QueryDao
public interface AssessmentGradingDao extends BaseDao<Long,AssessmentGradingModel> {
    @DaoSql(sql="SELECT * FROM assessment_grading WHERE 1=1 { and GRADING_TYPE=:gradingType } { and objId=:objId } ",resultType = "List[AssessmentGradingModelMapping]")
    List<AssessmentGradingModel> getAssessmentGradingModelListBySearchParameter(SearchParameter searchParameter);

    @DaoSql(sql="SELECT * FROM assessment_grading WHERE 1=1 { and GRADING_TYPE=:gradingType } { and OBJ_ID=:objId }",resultType = "Page[AssessmentGradingModelMapping]")
    SearchPageResult<AssessmentGradingModel> getAssessmentGradingModelListPage(SearchParameter searchParameter);
}
